package com.org.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.org.common.MyServeList;
import com.org.common.PageBean;
import com.org.pojo.Serve;

/**
 * ClassName: ServeService
 * Package: com.org.service
 * Description:
 *
 * @Author Origin
 * @Create 2024/2/6 13:51
 * @Version 1.0
 */
public interface ServeService extends IService<Serve> {

    //在本账户添加服务
    void add(Serve serve);

    //查看当前账户各种状态的服务信息
//    PageBean<MyServeList> myServeList(Integer pageNum, Integer pageSize, String title, String type, String state);

    //更新服务信息
    void update(Serve serve);

    //根据id查找服务详细信息
    Serve findById(Integer id);

    //删除相关服务
    void delete(Integer id);

    //更新服务状态
    void updateState(Integer id, String state);

    //查询所有服务信息
    PageBean<Serve> allList(Integer pageNum, Integer pageSize, String location, String title, String content, String type, String userType, String createId, String communityId, String duration, String state, String removeDraftAndPending, String sortMethod);

    //刷新所有服务状态
    void refresh();

    //根据title和userId统计个数
    Integer count(String title);
}
